import request from '../utils/request'

export function getHelp (name) {
  return request({
    url: 'app/help',
    method: 'get',
    params: {
      name: name
    }
  })
}

export function putHelp (data) {
  return request({
    url: 'app/help',
    method: 'put',
    data: data
  })
}

export function postHelp (data) {
  return request({
    url: 'app/help',
    method: 'post',
    data: data
  })
}

export function postHelpUp (id) {
  return request({
    url: 'app/help/up',
    method: 'post',
    params: {
      id: id
    }
  })
}

export function postHelpDown (id) {
  return request({
    url: 'app/help/down',
    method: 'post',
    params: {
      id: id
    }
  })
}

export function deleteHelp (id) {
  return request({
    url: 'app/help',
    method: 'delete',
    data: {
      id: id
    }
  })
}
